import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import "../node_modules/swiper/dist/css/swiper.min.css";
import "./component/static/css/reset.css";
import "./component/static/css/basic.css";

import './component/static/font_bzrfetexwoob6gvi/iconfont.css';

import $ from 'jquery';


import {Router,Route,browserHistory,IndexRoute} from 'react-router';


import Home from './component/Home';
import Discover from './component/Discover';
import Order from './component/Order';
import User from './component/User';
import UserName from './component/UserName';
import Detail from './component/Detail';
import Search from './component/Search';
import Collection from './component/Collection';
import Login from './component/Login';
import OrderCommit from './component/OrderCommit';
import Register1 from './component/Register1';
import Register2 from './component/Register2';
import Register3 from './component/Register3';
import Mine from './component/Mine';

ReactDOM.render(
        <Router history={browserHistory}>
            <Route path="/" component={App}>
               <IndexRoute component={Home}/>
               <Route path="home" component={Home}/>
               <Route path="discover" component={Discover}/>
               <Route path="order" component={Order}/>
               <Route path="user" component={User}/>
               <Route path="userName" component={UserName}/>
               <Route path="detail/:_id" component={Detail}/>
               <Route path="search" component={Search}/>
               <Route path="collection" component={Collection}/>
               <Route path="login" component={Login}/>
                <Route path="ordercommit/:_id" component={OrderCommit}/>
                <Route path="register1" component={Register1}/>
                <Route path="register2" component={Register2}/>
                <Route path="register3" component={Register3}/>
                <Route path="mine" component={Mine}/>
            </Route>
        </Router>
    
    , document.getElementById('root'));
registerServiceWorker();
